Read aloud support - #233
Conversation
|
Thanks! Looks totally fine to me. Definitely clean up the comments :) |
| try { | ||
| const sdt = await window._view._loadSDT(); | ||
| if (sdt) { | ||
| blockIndex = window._view._view.getVisibleBlockIndex?.(sdt.structure) ?? null; |
There was a problem hiding this comment.
I don't think this drilling down into the view class belongs here. Can you add a wrapper in view.js?
| // the move when already visible, `block: 'center'` keeps the read text centered. | ||
| if (position) { | ||
| try { | ||
| window._view._view.navigateToSelector(position, { ifNeeded: true, block: 'center', behavior: 'smooth' }); |
|
Noticed some things when I read more carefully on a second pass! Broken |
To be fair to claude, I specifically told it to not touch any reader internals other than It works fine btw. |
|
Thanks! |
I'll clear the unnecessary AI comments once this is finished and approved. Closes #215.